package com.niiwoo.civet.trade.service.dubbo.newRefund;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.service.local.newRefund.refundDeal.RefundForRepaymentService;
import com.niiwoo.civet.trade.service.newRefund.RefundCheckDubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by yuanguang on 2018/5/9.
 */
@Service(version = "1.0.0")
public class RefundCheckDubboServiceImpl implements RefundCheckDubboService {
    @Autowired
    private RefundForRepaymentService refundForRepaymentService;

    /**
     * 按期还款参数校验（目前提供给R360调用）
     * @param projectId
     * @param periods
     * @return
     */
    public Boolean checkPeriodsIsLegal(Long projectId,List<Integer> periods){
        return refundForRepaymentService.checkPeriodsIsLegal(projectId,periods);
    }
}
